Ext.ns('TaxonTagger');
TaxonTagger.delimitedList = function(config){
	
	Ext.apply(this, config, {
			id: 'list-delimited'
		,	iconCls: 'icon_txt'	
		,	autoScroll: true
	});

	TaxonTagger.delimitedList.superclass.constructor.call(this, config);
	
};

Ext.extend(TaxonTagger.delimitedList, Ext.Panel, {
	
	loadList: function() {
		var str = '';
		TaxonTagger.docStore.each(function( item ) {
			var  comment = '';
			if(Ext.isDefined(item.data.comment) && !Ext.isEmpty(item.data.comment)){
				comment = "|" +  item.data.comment;
			}
			str += item.data.scientificName + "|" + item.data.source + comment + '<br>';
		});
		this.body.update("<div class='list'>" + str + "<div>");
	}

});